@c-blue:#4692CD;
@c-bg:#F6F7F8;
@c-red:#EA0101;
@c-white:#fff;
@c-orange:#FFAE00;
@c-green: #006A39;
@c-green-light:#028a4b;
@c-gray:#B3B3B3;


.text-center{
  text-align: center;
}
.text-left{
  text-align: left;
}
.text-right{
  text-align: right;
}
.block{
  width: 100%;
}
.block-center{
  margin-left: auto;
  margin-right: auto;
}

.d-0{
  padding: 0 !important;
}
.m-0{
  margin: 0 !important;
}


.line{
  border-bottom: dashed 1px #e6e6e6;
}

.t-blue{
  color: @c-blue;
}
.t-red{
  color: @c-red;
}
.t-orange{
  color: @c-orange;
}
.t-green{
  color: @c-green-light;
}
.t-gray{
  color: @c-gray;
}

.h1{
  font-size: 22px;
}
.h2{
  font-size: 20px;
}
.h3{
  font-size: 18px;
}
.h4{
  font-size: 16px;
}
.h5{
   font-size: 14px;
 }
.h6{
  font-size: 12px;
}

.layui-badge-dot{
  background-color:@c-red;
}
.layui-bg-orange{
  background-color:@c-orange;
}
.layui-bg-green{
  background-color:@c-green-light;
}

.layui-container-full{
  padding: 1rem;
}

.h-user,.h-exit{
  border: solid 1px red;
  display: inline-block;
  padding: 0 10px;
  text-align: center !important;
}
.h-menus{
  float: right;
  display: flex;
  text-align: center;
  .icon{
    height: 14px;
    width: auto;
  }
  li{
    height: 30px;
    line-height: 30px;
    padding: 0 10px;
    position: relative;
  }
  li+li::after{
    content: "";
    display: block;
    height: 16px;
    width: 0;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    border-left: solid 1px #ECECEC;
  }
  .btn-exit{
    cursor:pointer;
  }
}


.layout-middle{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
}

.layui-layout_ka{
  .layui-side{
    box-sizing: border-box;
    width: 160px;
    top: 0;
    transition: transform 1s;
    .side-bar{

      width: 15px;
      height: 49px;
      position: absolute;
      top: 50%;
      right: 0px;
      transform: translate(0,-50%);
      background: url("../images/side-hide.png") no-repeat;
    }
    .bar-container{
      padding: 1.2rem;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
      overflow: hidden;
    }
  }
  .layui-header{
    transition: all 1s;
    position: absolute;
    left: 160px;
    right: 0;
    height: 40px;
    background: #fff;
    padding: 5px 10px;
    box-sizing: border-box;
  }
  .layui-body{
    transition: all 1s;
    left: 160px;
    top: 40px;
    background: @c-bg;
  }
  .layui-footer{
    left: 160px;
    transition: all 1s;
  }

}

.layui-layout_ka.fold{
  .layui-side{
    transform: translate(-140px,0);
    padding: 0;
    .logo,.menus{
      display: none;
    }
    .bar-container{
      margin-right: 15px;
      width: auto;
    }
    .side-bar{
      background: url("../images/side-show.png") no-repeat;
      right: 0px;
    }
  }
  .layui-header,.layui-body,.layui-footer{
    left: 5px;
  }

}
.layui-bg-blue{
  background: @c-blue;
}

.layui-bg-green{
  background: @c-green !important;
}

.layui-btn{
  background-color: @c-green;
}
.layui-laypage .layui-laypage-curr .layui-laypage-em{
  background-color: @c-green;
}

.layui-btn-hollow,.layui-btn-hollow:hover{
  border: solid 1px #006A39 !important;
  display: inline-block;
  height: 34px;
  line-height: 34px;
  padding: 0 18px;
  color: #006A39;
  white-space: nowrap;
  text-align: center;
  font-size: 14px;
  border: none;
  cursor: pointer;
}
.layui-btn-hollow.active{
  background: #006A39;
  color: #fff;
}




.p-1{
  padding: 1rem;
}

.d-flex{
  display: flex;

  &.align-center{
    align-items: center;
  }
  .flex{
    flex: 1;
  }
}
.chart-board{
  background: #fff;
  border-radius: 10px;
  .board-header{
    padding: .5rem 1rem;
    border-bottom: solid 1px gray;
  }
  .board-body{
    padding: .5rem 1rem;
  }
}

.logo{
  display: block;
  width: 90%;
  height: auto;
  margin: 0 auto;
}
.menus{
  padding: 1rem 0;
  margin-top: 4rem;
  margin-bottom: 10px;
  overflow-y: auto;
  height: calc(~"100% - 150px");
  .layui-icon{
    font-size: 1.6rem;
    text-align: center;
  }
  .icon{
    width: 25px;
    height: auto;
    margin: 0;
  }
  .menu{
    border-radius: 10px;
    padding: .8rem;
    text-align: center;
    font-size: 1rem;
    box-sizing: border-box;
    line-height: 1.4;
    cursor: pointer;
    display: block;
    color: #fff;
    &+.menu{
      margin-top: 1rem;
    }
    &.active,&:hover{
      background:#008749 ;
    }
  }

}

.page-header{
  padding: 0 0 1rem;
}
.page-row{
  padding: .2rem 1rem;
}
.page-title{

  font-weight: bold;
  position: relative;
  padding: 0 1rem;
  margin: .5rem 0;
  &::after{
    content: "";
    width: 3px;
    height: 100%;
    background: @c-blue;
    position: absolute;
    left: 0;
    top: 0;
  }
  .time{
    vertical-align: bottom;
    font-weight: normal;
    font-size: .8rem;
    float: right;
  }
}

.heading-row{
  padding: .2rem 1rem;
}
.total-row{
  padding: .2rem 1rem;
}

.modal{
  display: none;
  .modal-body{
    padding: .5rem 1rem;
  }
  .label-col_3{
    label{
      display: inline-block;
      width: calc((100% - 2rem)/3);
      padding: .5rem 0;
    }
  }
  .label-col_2{
    label{
      display: inline-block;
      width: calc((100% - 2rem)/2);
      padding: .5rem 0;
    }
  }
}





.layui-container{
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.card-group{
  display: flex;
  flex-wrap: wrap;
  .board-card{
    width: 160px;
    height: 130px;
    background: @c-white;
    padding: .5rem;
    border-radius: 10px;
    box-shadow: 0px 0px 3px #cccccc;
    margin: .5rem ;
    position: relative;
    line-height: 24px;
    cursor: pointer;
    position: relative;
    .shade{
      position: absolute;
      width: 100%;
      height: 100%;
      top: 0;
      left: 0px;
      top: 0;
      left: 0px;
      background: rgba(255, 255, 255, .6);
      text-align: center;
      padding: 55px 10px;
      box-sizing: border-box;
      bottom: 0px;
      border-radius: 10px;
      z-index: 9;
      display: none;
    }

    &.active{
      border: solid 1px @c-red;
    }
    .card-header{
      padding: .2rem 0 .5rem;
      border-bottom: dashed 1px #B7B7B7;
      color: #B7B7B7;
      >span{
        font-size: 16px;
        color: #000;
      }
    }
    .card-conentet{
      padding: .5rem 0;
      color: #B7B7B7;
      span{
        margin-left: .5rem;
      }
    }

    .card-footer{
      position: absolute;
      padding: .2rem .8rem;
      left: 0;
      bottom: 0;
      width: 100%;
      box-sizing: border-box;
      >span{
        float: right;
      }
    }

  }
}

.time-board{
  border-radius: 5px;
  width: 200px;
  float: right;
  .time-header{
    display: flex;
    background: #637375 ;
    color: #fff;
    padding: .5rem;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    .time{
      font-size: 30px;
      margin-right: 20px;
    }
  }
  .time-footer{
    padding: .5rem;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    background: #fff;
    >img{
      width: 60%;
      height: auto;
    }
  }
}

//login page styles
.login-page{
  background: #DBEBE6;
}
.c-login{
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 320px;
  padding: 40px 10%;
  margin: 0 auto;
  .login-header{
    margin-bottom: 40px;
    color: #9F9F9F;
    >img{
      margin-bottom: 10px;
    }
  }
  input[type='text'],input[type='password']{
    border: none;
    border-bottom: solid 1px #DCDCDC;
  }
}
.c-checkbox{
  padding-left: 20px;
  position: relative;
  .box{
    display: block;
    width: 15px;
    height: 15px;
    background: url("../images/checkbox.png") no-repeat;
    background-size: cover;
    position: absolute;
    top: 0;
    left: 0;
  }

  input[type="checkbox"]:checked + .box{
    background: url("../images/checkbox-check.png") no-repeat;
  }

}


.menu-bar{
  .layui-form-item{
    margin: 0;
    & + .layui-form-item{
      margin-left: 10px;
    }
  }
  .item-btn-select{
    background: #006A39;

    .layui-form-label{
      width: 50px;
      color: #fff;
    }
    .layui-input-block{
      margin-left: 80px;
    }
    .layui-unselect{
      width: 100px;
    }
    input{
      background: none;
      border: none;
      color: #fff;
    }
    input::-webkit-input-placeholder{
      color: #fff;
    }
    .layui-edge{
      border-top-color: #fff;
    }
  }
}

.follow{
  position: relative;
  display: inline-block;
  >input[type='checkbox']{
    display: block;
    width: 22px;
    height: 23px;
    position: absolute;
    opacity: 0;
    z-index: 99;
    margin: 0px auto;
  }
  .layui-icon{
    display: none;
  }
  .layui-unselect{
    display: block;
    width: 20px !important;
    height: 20px !important;
    background: url("../images/follow.png") no-repeat;
    background-size: contain;
    margin: 4px auto;
    padding: 0;
    border: none;
  }
  >input[type='checkbox']:checked + .layui-unselect{
    background: url("../images/follow-active.png") no-repeat;
    background-size: contain;
  }
}

#tableContent + .layui-form{
  .layui-table td:first-child{
    .layui-unselect{
      background: url("../images/tabcheck.png") no-repeat;
      background-size: contain;
    }
    input[type='checkbox']:checked + .layui-unselect{
      background: url("../images/tabchecked.png") no-repeat;
      background-size: contain;
    }
  }

}

.form-item-flex .layui-input-inline{
  width: auto !important;
}

.icon{
  display: inline-block;
  display: inline-block;
  width: 12px;
  height: 11px;
  margin-right: 5px;
}
.icon-sx{
  background: url("../images/sx.png") no-repeat;
  background-size: contain;
}
.icon-dy{
  background: url("../images/dy.png") no-repeat;
  background-size: contain;
}
.icon-fh{
  background: url("../images/fh.png") no-repeat;
  background-size: contain;
}
.icon-fqhz{
  background: url("../images/fqhz.png") no-repeat;
  background-size: contain;
}
.icon-gd{
  background: url("../images/gd.png") no-repeat;
  background-size: contain;
}


.layui-layer-title{
  text-align: center !important;
  font-size: 18px !important;
  padding: 0 !important;
}
.layui-layer-btn .layui-layer-btn0 {
  border-color: #006A39 !important;
  background-color: #006A39 !important;
  color: #fff
}


.dashed-row{
  border: dashed 1px #E9E9E9;
  padding: 10px;

}
.ks-group{
  background: #006A39;
  margin-right: 10px;
  display: flex;
  input{
    height: 30px;
    border: none;
    background: none;
    width: 120px;
    color: #fff;
    font-size: 12px;
  }
  input::-webkit-input-placeholder{
    color: #fff;
    font-size: 12px;
  }
  .layui-edge{
    border-top-color: #fff;
  }
}

.sx-group{
  background: #006A39;
  margin-right: 10px;
  display: flex;
  padding: 0 5px;
  .icon-box{
    display: block;
    height: 30px;
    line-height: 30px;
    padding-left: 5px;
    font-size: 12px;
    .icon{
      margin: 0;
    }
  }
  .layui-btn{
    position: relative;
    margin: 0;
  }
  .layui-btn + .layui-btn::after{
    content: "";
    display: block;
    width: 1px;
    height: 15px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(0, -50%);
    border-left: solid 1px #fff;
  }

}

.pt{
  background: #fff;
}
.user-list{
  display: none;
  position: absolute;
  left: 0;
  top: 42px;
  padding: 5px 0;
  z-index: 999;
  min-width: 100%;
  border: 1px solid #d2d2d2;
  max-height: 300px;
  overflow-y: auto;
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,.12);
  box-sizing: border-box;
  >li{
    padding: 0 10px;
    line-height: 36px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    &:hover{
      background-color: #f2f2f2
    }
  }
}

.btnactive{
  color: #000;
}
